package com.mifengs.moduletwo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = "/moduletwo/main")
public class MainActivity extends Activity {

    @BindView(R2.id.textView)
    TextView textView;
    @BindView(R2.id.bt01)
    Button bt01;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_module_two);
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.textView, R2.id.bt01})
    public void onViewClicked(View view) {
        int i = view.getId();
        if(i == R.id.textView){

        }else if(i == R.id.bt01){
            ARouter.getInstance().build("/moduleone/main").navigation();
        }
    }
}
